package com.cyys.common.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.cyys.common.validate.Delete;
import com.cyys.common.validate.Detail;
import com.cyys.common.validate.Edit;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class BaseBean implements java.io.Serializable{

	@TableId
	@NotBlank(message = "ID不能为空",groups = {Edit.class, Delete.class, Detail.class})
	private String id;

	@TableLogic
	@JsonIgnore
	protected Integer isDelete;

}
